package com.lkj.controller;

import com.lkj.entity.SysPost;
import com.lkj.service.SysPostService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 岗位信息表(SysPost)表控制层
 *
 * @author makejava
 * @since 2020-09-13 10:39:03
 */
@RestController
@RequestMapping("sysPost")
public class SysPostController {
    /**
     * 服务对象
     */
    @Resource
    private SysPostService sysPostService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public SysPost selectOne(Long id) {
        return this.sysPostService.queryById(id);
    }

}